//
//  Auction.swift
//  jiaoyi
//
//  Created by 易万军 on 2018/10/23.
//  Copyright © 2018 wjk. All rights reserved.
//  专场

import Foundation
import ObjectMapper
//"id": 359,
//"websocket_url": "http://cqgrain.demo.yunsom.cn/ws?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb29tIjoiZ3VhcGFpLTM1OSIsImlhdCI6MTU0MDMwNjg3MiwiZXhwIjoxNTQwMzE0MTAyfQ.NDiUu9aj6DHWZyOgWDqTT0lwLHw2VxMJvU-ANkxxwZ8",
//"trading_url": "",
//"trading_target_url": "http://api.cqgrain.demo.yunsom.cn/api/v1/fair/359/target",
//"trade_date": "08月31日",
//"status_text": "已暂停",
//"regions_text": "北京",
//"name": "测试暂停关闭",
//"trade_type": 2,
//"trade_type_text": "挂牌销售",
//"varieties_text": "大米"

struct Auction: Mappable {

    
    var id: Int?
    var websocketUrl: String?
    var tradingUrl: String?
    var tradeDate: String?
    var statusText: String?
    var regions: String?
    var name: String?
    var tradeType: Int?
    var tradeTypeText: String?
    var varietiesText: String?
    
    init?(map: Map) {
        
    }
    
    mutating func mapping(map: Map) {
        id                  <- map["id"]
        websocketUrl        <- map["websocket_url"]
        tradingUrl          <- map["trading_target_url"]
        tradeDate           <- map["trade_date"]
        statusText          <- map["status_text"]
        regions             <- map["regions_text"]
        name                <- map["name"]
        tradeType           <- map["trade_type"]
        tradeTypeText       <- map["trade_type_text"]
        varietiesText       <- map["varieties_text"]
    }
    
}
